/* 数据管理页面整体布局 */
.data-management-page {
  /*background: #fcfcfc;
  min-height: 80vh;
  padding: 0 16px 18px 16px;*/
  position: absolute;
  bottom: 0;
  top: 70px;
}

.data-management-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #fcfcfc;
  border-radius: 4px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.data-management-header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.button-divider {
  width: 1px;
  height: 20px;
  background-color: #d9d9d9;
  margin: 0 12px;
}

.data-management-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.data-management-left {
}

.data-management-left,
.data-management-right {
  background: #fcfcfc;
  border-radius: 4px;
  padding: 20px;
  /*min-height: calc(100vh - 150px);*/
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.data-management-left .ant-tree .ant-tree-node-content-wrapper {
  padding-inline: 3px;
}

.data-management-left .ant-tree .ant-tree-switcher:before {
  width: 16px;
}

.data-management-left .ant-tree-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 0;
}

.data-management-left-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.data-management-tree-container {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

/*.data-management-right .ant-table-body {
  height: calc(100vh - 450px) !important;
}*/

.data-management-right .ant-table-body > table {
}

.data-management-right .ant-table-placeholder {
  height: 100px;
}

.data-management-right .ant-table-placeholder > .ant-table-cell {
  border: none;
}

.data-management-left .ant-tree .ant-tree-switcher {
  width: 16px;
}

.data-management-left .ant-tree-indent-unit {
  width: 10px;
}

.data-management-right .ant-table-wrapper .ant-table-thead th.ant-table-column-has-sorters {
  transition: none !important;
}

/* 左侧树面板 */
.task-tree-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(30, 87, 153, 0.06);
  padding: 18px 12px 18px 18px;
  margin-bottom: 12px;
  min-height: 520px;
}
.tree-title {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}
.tree-title.active {
  color: #0f59a4;
  border-bottom: 1px solid #0f59a4;
}

.ant-tree {
  background: transparent;
}
.ant-tree .ant-tree-node-content-wrapper {
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s;
}
.ant-tree .ant-tree-node-content-wrapper:hover {
  /*background: #e6f7ff;*/
  color: #0f59a4;
}
.ant-tree .ant-tree-node-selected {
  background: #e3f0ff !important;
  color: #0f59a4 !important;
}

.data-management-page .ant-tree .ant-tree-node-selected {
  background: none !important;
}

/* 确保右侧列不会因为内容过宽而换行 */
.data-management-page > .ant-row > .ant-col[style*='flex: 1 1 auto'] {
  min-width: 0;
}

/* 顶部筛选表单 */
.filter-form {
  background: #fff;
  /*border-radius: 8px;
  box-shadow: 0 2px 8px rgba(30, 87, 153, 0.06);
  padding: 16px 18px 0 18px;*/
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.filter-form .ant-form-item {
  margin-bottom: 0 !important;
}

.ant-tooltip {
  max-width: 800px;
}

/* 操作按钮区 */
.action-buttons {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(30, 87, 153, 0.06);
  padding: 12px 18px;
  margin-bottom: 12px;
}

.action-buttons .ant-btn {
  /* min-width: 90px; */
  font-size: 14px;
}

/* 表格美化 */
.data-management-right .ant-table-wrapper {
  border-radius: 8px;
  overflow-x: auto;
}
.ant-table-thead > tr > th {
  background: #e3f0ff;
  color: #0f59a4;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.ant-table-tbody > tr > td {
  font-size: 14px;
  padding: 6px 8px;
  white-space: nowrap;
}
.ant-table-row-selected > td {
  background: #f0f7ff !important;
}

/* 表格内按钮样式优化 */
.ant-table-tbody .ant-btn-sm {
  padding: 0 6px;
  height: 24px;
  font-size: 12px;
}

/* 表格内的操作列样式 */
.ant-table-fixed-right {
  background: #fff;
  box-shadow: -3px 0 5px rgba(0, 0, 0, 0.1);
}

/* 响应式优化 */
@media (max-width: 900px) {
  .task-tree-panel {
    min-height: 320px;
    padding: 10px 4px 10px 10px;
  }
  .tree-title {
    font-size: 16px;
  }
  .filter-form {
    padding: 0;
  }
  .action-buttons {
    padding: 8px 6px;
  }
  .table-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 0;
  }
}

.table-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 8px 8px 0;
  overflow: auto;
  height: 42px;
}
.table-footer-bar .action-buttons {
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
  background: none;
  padding: 0;
}

/* 固定项筛选条样式 */
.fixed-filter-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 8px;
  padding-left: 8px;
  font-size: 14px;
  user-select: none;
}
.filter-tab-item {
  color: #7a8ca4;
  cursor: pointer;
  transition: color 0.2s;
}
.filter-tab-item:hover {
  color: #0f59a4;
}
.filter-tab-item.active {
  color: #0f59a4;
  font-weight: bold;
  border-bottom: 1px solid #0f59a4;
  padding-bottom: 2px;
}

/* 斑马纹效果：偶数行为浅蓝色，奇数行为白色 */
.zebra-row-even {
  background-color: #e6f7ff !important;
}
.zebra-row-odd {
  background-color: #fff !important;
}

.page-header {
  margin-bottom: 16px;
  padding: 0 16px;
}

.data-management-container {
  /*border-radius: 4px;
  background: #fcfcfc;*/
  /*min-height: 80vh;*/
  padding: 0;
  width: 100%;
  position: relative;
  flex: 1;
}

.react-resizable {
  position: relative;
  background-clip: padding-box;
}

.react-resizable-handle {
  position: absolute;
  right: -5px;
  bottom: 0;
  z-index: 1;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  background: transparent;
}

.react-resizable-handle::after {
  content: '';
  position: absolute;
  right: 0px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: transparent;
}

.react-resizable-handle:hover::after {
  background-color: #1890ff;
}

/* 第一层级整行背景色 */
.data-management-page .ant-tree-treenode.level-1-node {
  background: #1890ff !important;
  color: #fff !important;
  width: 100%;
}
.data-management-page .ant-tree-treenode.level-1-node:hover > .ant-tree-node-content-wrapper {
  color: #fff !important;
}
/* 第二层级整行背景色 */
.data-management-page .ant-tree-treenode.level-2-node {
  background: #eef8ff !important;
  width: 100%;
}

/* 分页组件紧凑样式 */
.science-data-pagination .ant-pagination-total-text {
  margin-inline-end: 0 !important;
}
.science-data-pagination .ant-pagination-prev {
  margin-inline-end: 0 !important;
}
.science-data-pagination .ant-pagination-simple-pager {
  margin-inline-end: 0 !important;
}
.science-data-pagination .ant-pagination-options {
  margin-inline-start: 0 !important;
}
.science-data-pagination .ant-pagination-slash {
  margin-inline-end: 10px !important;
  margin-inline-start: 10px !important;
}

/* 轨道圈数标签宽度调整 */
.ant-form-item-label {
  min-width: var(--ant-form-item-label-width, auto) !important;
}
